<?php if (!defined('THINK_PATH')) exit();?><html>
	<head>	
		<title>管理实验室</title>
		<script type="text/javascript" src="__JS__/menu.js"></script>
		<script type="text/javascript" src="__JS__/leftmenubar.js"></script>
		<link rel="stylesheet" type="text/css" href="__CSS__/header.css" />
		<script type="text/javascript" src="__JS__/jshelper.js"></script> 
		<script type="text/JavaScript">
			function labedit(id){
				window.location.href="__URL__/labedit/id/"+id;
			}
			function labes(id){
				window.location.href="__URL__/labes/id/"+id;
			}
			function labdelete(id){
				if (confirm("你确定要删除吗")==true) {
					//posthelper([["id",id],],'__URL__/labdelete');
					postwith('__URL__/labdelete',{id:id});
				}
			}
			
			window.onload=show;
		</script>
		<script type="text/javascript" src="__JS__/jQuery/jquery.js"></script>
       	<script type="text/javascript" src="__JS__/jQuery/jquery.form.js"></script>
		<script type="text/JavaScript">
        $(function(){
            $('#form1').ajaxForm({
                //beforeSubmit:  function(){alert("before");},  // pre-submit callback
                success:       complete,  // post-submit callback
                error:function(){alert("error");},
                dataType: 'json'
            });
            
            function complete(data){
                if (data.status==1)
                {
                	window.location=window.location.href;
                }else{
                    $('#result').html(data.info).show();
                }
            }
        });
        </script>
	</head>
	<body>	
		
		<div class="nowposition">  <!--当前位置-->
			当前位置：
		<a href='__APP__/index/index' class="nowpositionhref">主页</a>>
		<a href='__URL__/index' class="nowpositionhref">后台管理</a>>
		<a href="__URL__/labdetail" class="nowpositionhref">实验室管理</a>
		</div>
	</div>
	<div id="container">
		<!-- layout::Auth:leftmenu::0 -->
		<div class="Addlab">
			<div id='result'></div>	

  		</div>
	</div>
			<!--显示学院-->
			<div id="lab_Show">
				<table  border="0" align="lab" cellpadding="0px" cellspacing="0px">
					<thead  style="background-color:#f0f0f0;">
						<tr id="table_lab_show_title">
							<td style="width:150px">实验室名称</td>
							<td style="width:50px">操作</td>
							<a href="__URL__/classadd2" class="nowpositionhref">实验室添加</a>
						</tr>
					</thead>
					<load href"__PUBLIC__/js/list_show.js">
					<tbody id="tab">
						<?php if(is_array($list)): $i = 0; $__LIST__ = $list;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): ++$i;$mod = ($i % 2 )?><tr id="table_lab_show">
								
								<td style="width:180px;"><?php echo ($vo["name"]); ?></td><!--实验室名称-->
								<td style="display:none;"><?php echo ($vo["id"]); ?></td>	<!--实验室ID-->
								<td style="width:100px">
									<a href="javascript:labedit('<?php echo ($vo["id"]); ?>')" style="color:#666666; text-decoration:none; font-size:12px;">编辑</a>
									<!--<input type="button" name="labedit"onClick="labedit(<?php echo ($vo["id"]); ?>)" value="编辑">-->
									<a  href="javascript:labdelete('<?php echo ($vo["id"]); ?>')" style="color:#666666; text-decoration:none; font-size:12px;">删除</a>
									<!--<input name="delete_lab" type="reset" onClick="labdelete(<?php echo ($vo["id"]); ?>)" value="删除">-->
								    <a href="javascript:labes('<?php echo ($vo["id"]); ?>')" style="color:#666666; text-decoration:none; font-size:12px;">维修申请</a>
									<!--<input type="button" name="labes"onClick="labes(<?php echo ($vo["id"]); ?>)" value="维修申请">-->
                     
								</td>
							</tr><?php endforeach; endif; else: echo "" ;endif; ?>
					</tbody>		
				</table>
			
				<div align="right" class="green-black" style="width:900px; position:relative; top:20px; left:-35px;">
					<?php echo ($page); ?>
				</div>
		</div>
	</body>
</html>